import request from '@/utils/request'

// 账户列表
export function accountList(params: any) {
    return request.get({ url: '/user.integral/accountList', params })
}

// 禁用
export function setNoticeConfig(params: any) {
    return request.post({ url: '/user.integral/setStatus', params })
}

// 积分列表
export function integralList(params: any) {
    return request.post({ url: '/user.integral/integralList', params })
}

// 资讯列表
export function news_lists(params: any) {
    return request.post({ url: '/news/lists', params })
}

// 添加保存资讯
export function news_save(params: any) {
    return request.post({ url: '/news/save', params })
}

// 资讯详情
export function news_details(params: any) {
    return request.post({ url: '/news/details', params })
}

// 删除资讯
export function news_delete(params: any) {
    return request.post({ url: '/news/delete', params })
}

// 标签头像列表
export function badgeLists(params: any) {
    return request.get({ url: '/channel.channel_badge/lists', params })
}
// 标签头像详情
export function badgeDetail(params: any) {
    return request.get({ url: '/channel.channel_badge/detail', params })
}
// 标签头像编辑
export function badgeEdit(params: any) {
    return request.post({ url: '/channel.channel_badge/edit', params })
}
// 更改标签头像状态
export function badgeStatus(params: any) {
    return request.post({ url: '/channel.channel_badge/updateStatus', params })
}

// 助融分样式列表
export function styleLists(params: any) {
    return request.get({ url: '/channel.channel_score_style/lists', params })
}
// 助融分样式详情
export function styleDetail(params: any) {
    return request.get({ url: '/channel.channel_score_style/detail', params })
}
// 助融分样式编辑
export function styleEdit(params: any) {
    return request.post({ url: '/channel.channel_score_style/edit', params })
}
// 助融分样式编辑
export function styleStatus(params: any) {
    return request.post({ url: '/channel.channel_score_style/updateStatus', params })
}

// 补贴列表
export function subsidyList(params: any) {
    return request.get({ url: '/product.product/subsidyList', params })
}
// 补贴详情
export function subsidyInfo(params: any) {
    return request.get({ url: '/product.product/subsidyInfo', params })
}
// 保存补贴
export function saveSubsidy(params: any) {
    return request.post({ url: '/product.product/saveSubsidy', params })
}
// 删除补贴
export function delSubsidy(params: any) {
    return request.post({ url: '/product.product/delSubsidy', params })
}
// 搜索产品对应的渠道
export function searchChannel(params: any) {
    return request.get({ url: '/product.product/searchChannel', params })
}

// 活动页列表
export function imgLists(params: any) {
    return request.get({ url: '/pages/pageList', params })
}
// 保存活动页
export function imgSave(params: any) {
    return request.post({ url: '/pages/savePage', params })
}
// 删除活动页
export function imgDelete(params: any) {
    return request.post({ url: '/pages/delPage', params })
}
//活动页详细数据
export function imgDetail(params: any) {
    return request.get({ url: '/pages/lists', params })
}
// 保存活动页详细
export function imgDetailSave(params: any) {
    return request.post({ url: '/pages/save', params })
}
//获取教程配置数据
export function getTutorialConfig(params: any) {
    return request.get({ url: '/article.article/getTutorialConfig', params })
}
// 设置教程配置数据
export function setTutorialConfig(params: any) {
    return request.post({ url: '/article.article/setTutorialConfig', params })
}
// 保存分类
export function saveType(params: any) {
    return request.post({ url: '/article.content/saveType', params })
}
// 分类列表
export function typeList(params: any) {
    return request.get({ url: '/article.content/typeList', params })
}
// 分类详情
export function typeInfo(params: any) {
    return request.get({ url: '/article.content/typeInfo', params })
}
// 保存文章
export function contentSave(params: any) {
    return request.post({ url: '/article.content/contentSave', params })
}
// 文章列表
export function contentList(params: any) {
    return request.get({ url: '/article.content/contentList', params })
}
// 文章详情
export function contentInfo(params: any) {
    return request.get({ url: '/article.content/contentInfo', params })
}
//工具列表
export function toolLists(params?: any) {
    return request.get({ url: '/tools.tools/toolLists', params })
}

// 添加工具
export function toolAdd(params: any) {
    return request.post({ url: '/tools.tools/toolAdd', params })
}

// 编辑工具
export function toolEdit(params: any) {
    return request.post({ url: '/tools.tools/toolEdit', params })
}

// 删除工具
export function toolDelete(params: any) {
    return request.post({ url: '/tools.tools/toolDelete', params })
}

// 工具详情
export function toolDetail(params: any) {
    return request.get({ url: '/tools.tools/toolDetail', params })
}

// 设置是否启用
export function toolUpdateStatus(params: any) {
    return request.post({ url: '/tools.tools/toolUpdateStatus', params })
}

// 保存工具分类
export function saveToolsProduct(params: any) {
    return request.post({ url: '/tools.tools/saveToolsProduct', params })
}

//直播列表
export function liveList(params: any) {
    return request.get({ url: '/dynamic.live/liveList', params })
}
//直播详情
export function liveInfo(params: any) {
    return request.get({ url: '/dynamic.live/liveInfo', params })
}
// 保存直播
export function saveLive(params: any) {
    return request.post({ url: '/dynamic.live/saveLive', params })
}
// 报名列表
export function joinUser(params: any) {
    return request.get({ url: '/dynamic.live/joinUser', params })
}
//申请列表
export function applyList(params: any) {
    return request.get({ url: '/dynamic.live/applyList', params })
}
// 申请审核
export function authApply(params: any) {
    return request.post({ url: '/dynamic.live/authApply', params })
}